package com.example.app2024.cat;


public class Dot
{
      int x, y;
      int status;

      /**
       * 路障
       */
      public static final int STATUS_ON = 1;
      public static final int STATUS_OFF = 0;  //灰色路障
      public static final int STATUS_IN = 9;  //猫所在的位置

      public Dot(int x, int y)
      {
            this.x = x;
            this.y = y;
            status = STATUS_OFF;
      }

      public int getX()
      {
            return x;
      }

      public void setX(int x)
      {
            this.x = x;
      }

      public int getY()
      {
            return y;
      }

      public void setY(int y)
      {
            this.y = y;
      }

      public int getStatus()
      {
            return status;
      }

      public void setStatus(int status)
      {
            this.status = status;
      }

      public void setXY(int x, int y)
      {
            this.y = y;
            this.x = x;
      }
}
